package cn.wolfcode.shop.mapper;

import cn.wolfcode.shop.domain.Property;

import java.util.List;

public interface PropertyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Property record);

    Property selectByPrimaryKey(Long id);

    List<Property> selectAll();

    int updateByPrimaryKey(Property record);

    List<Property> listByCatalogId(Long catalogId);

    /**
     * 查询属性个数
     * @param catalogId
     * @return
     */
    Integer selectPropertyCount(Long catalogId);
}